Set Color of RGB Lights

  • Function:

    go.set_rgb_light(number,effect,r,g,b,cycle,counts)
    
  • Description: set color of RGB lights

  • Required parameter: :

    • number: number or corresponding value of RGB lights
      • "LED_1" or 1: left taillight
      • "LED_2" or 2: right taillight
      • "LED_3" or 3: right headlight
      • "LED_4" or 4: left headlight
      • "LED_ALL" or 5: all RGB lights
    • effect: state of RGB lights
      • 0: normally on
      • 1: time off
      • 2: breath
      • 3: blink
      • 4: color switch
      • 5: blink in sequence
      • 0xff: the same state as status indicator LEDs
    • r: red brightness value; data type: int; range: 0~255
    • g: green brightness value; data type: int; range: 0~255
    • b: blue brightness value; data type: int; range: 0~255
    • cycle: duration of one cycle; data type: float; unit: s
    • counts: times of blink (only used in blink mode); -1: infinite times; 1: once; 2: twice…
  • Return:

    • True: The command has been finished.
    • False: The command has not been finished.
  • Example

    go.set_rgb_light(number="LED_1", effect=1,r=255,g=0,b=0,cycle=2,counts=2)
    

    Set the left RGB taillight as "time off" mode in red color. It lights for two seconds before going out.

results matching ""

    No results matching ""